package com.beyondcreative.stylebean;

import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;

public class IntroActivity extends Activity {
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
	    setContentView(R.layout.intro);
	    LinearLayout intro = (LinearLayout) findViewById(R.id.introlayout);
	    intro.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				finish();
			}
		});
	    Handler handler = new Handler(){
	    	public void handleMessage(Message msg){
	    		finish();
	    	}
	    
	    };
	    handler.sendEmptyMessageDelayed(0, 1500);
	    
	}

}
